package 慕课网.homework1;

public class parent {
    private String workName;
    private String way;
    public parent(){

    }
    public parent(String workName,String way){
       this.setWay(way);
       this.setWorkName(workName);
    }
    public parent(String way){
        this.setWay(way);
    }
    public String getWorkName() {
        return workName;
    }
    public void setWorkName(String workName) {
        this.workName = workName;
    }
    public String getWay() {
        return way;
    }
    public void setWay(String way) {
        this.way = way;
    }
    public String describe(){
        String str="父类信息测试："+this.getWay();
        return str;
    }
}
